<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
	import="student.*"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学员登录</title>
<style type="text/css">
div {
	background-color: skyblue;
}
</style>
</head>
<body>
	<c:choose>
	<c:when test="${newsUser==null}">
	<div style="text-align: center;">
		<h1 style="color: gray;">新用户登录</h1>
		<form action="LoginServlet" method="post">
			<p>
				学号：<input type="number" name="stuno" required="required" />
			</p>
			<p>
				密码：<input type="password" name="pass" required="required" />
			</p>
			<p>
				<input type="submit" value="登录" style="width: 60px; height: 40px" />
			</p>
		</form>
	</div>
	</c:when>
	<c:otherwise>
	欢迎${newsUser.sname},您已经登录，<a href="LoginOutServlet">退出登录</a>
	</c:otherwise>
</c:choose>

</body>
</html>